import {
	request
} from "../utils/request.js"


export const loginApi = (data) => {
	return request({
		url: '/wechatLogin',
		method: 'post',
		data,
		headers: {
			isToken: false
		}
	})
}
// 获取用户详细信息
export const getInfo = () => {
	return request({
		url: '/getInfo',
		method: 'get'
	})
}

// 退出方法
export const logout = () => {
	return request({
		url: '/logout',
		method: 'post'
	})
}
//获取联系方式
export function getContact() {
  return request({
    url: '/common/getAdminInfo',
    method: 'get'
  })
}

// 平台简介
export function getNoticeByplatform() {
  return request({
    url: '/system/notice/1',
    method: 'get'
  })
}

// 查询字典数据列表
export function listData(query) {
  return request({
    url: '/system/dict/data/list',
    method: 'get',
    data: query
  })
}
